<template>
  <div class="video-foot">
    <div class="top">
      <div class="one">
        <h5>素材分类：</h5>
        <div class="right">
          <span>全部</span>
          <span v-for="item in 18" :key="item">生活服务</span>
        </div>
      </div>
      <div class="two">
        <input type="text" />
        <button>搜索</button>
        <p>下载次数</p>
        <el-select v-model="value" placeholder="请选择">
          <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          >
          </el-option>
        </el-select>
      </div>
    </div>
    <div class="list">
      <el-table :data="tableData" style="width: 100%">
        <el-table-column prop="date" label="素材名称" width="180">
        </el-table-column>
        <el-table-column prop="name" label="素材简介"> </el-table-column>
        <el-table-column prop="name" label="下载量" width="180">
        </el-table-column>
        <el-table-column prop="name" label="素材分类" width="180">
        </el-table-column>
        <el-table-column prop="name" label="操作" width="180">
        </el-table-column>
      </el-table>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      options: [
        {
          value: "选项1",
          label: "黄金糕",
        },
        {
          value: "选项2",
          label: "双皮奶",
        },
        {
          value: "选项3",
          label: "蚵仔煎",
        },
        {
          value: "选项4",
          label: "龙须面",
        },
        {
          value: "选项5",
          label: "北京烤鸭",
        },
      ],
      value: "",
      tableData: [
        {
          date: "2016-05-02",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1518 弄",
        },
        {
          date: "2016-05-04",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1517 弄",
        },
        {
          date: "2016-05-01",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1519 弄",
        },
        {
          date: "2016-05-03",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1516 弄",
        },
      ],
    };
  },
};
</script>

<style lang="less" scoped>
.video-foot {
  padding: 20px;
  .top {
    font-size: 14px;
    .one {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      margin: 20px 0;
      h5 {
        width: 100px;
        font-weight: 900;
      }
      .right {
        flex: 1;
        display: flex;
        flex-wrap: wrap;
        span {
          background: #ccc;
          margin: 0 20px 3px 20px;
          padding: 5px 10px;
          border-radius: 5px;
        }
      }
    }
    .two {
      display: flex;
      align-items: center;
      input {
        border: 1px solid #ccc;
        outline: none;
        height: 20px;
      }
      button {
        margin-right: 30px;
      }
      p {
        margin-right: 5px;
      }
    }
  }
}
</style>
